package org.example.fegin.fallback;

import entity.Article;
import org.example.fegin.ArticleFeginService;
import org.springframework.stereotype.Service;
import vo.ArticleVo;

/**
 * @author : xuzhennan
 * @Project : 787k-cloud
 * @Package : org.example.fegin.fallback
 * @email : xuzhennan@58.com
 * @date : 2021年08月29日 下午8:49
 */

// 注意⚠️：这个ArticleFeginFallbackService一定要实现ArticleFeginService
@Service
public class ArticleFeginFallbackService implements ArticleFeginService {
    @Override
    public ArticleVo findArticles(int pageNumber, int pageSize) {
        return null;
    }

    @Override
    public Article getArticleDetail(int id) {
        Article article = new Article();
        article.setAuthorId(1);
        article.setAuthorName("lelonta");
        article.setContent("兜底文章");
        article.setTitle("兜底数据");
        return article;
    }
}
